package com.market.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author xd
 * @since 2024-03-26
 */
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 来源（普通来源或者是作者编写发布的）
     */
    private String source;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 富文本内容
     */
    private String content;

    /**
     * 封面图片
     */
    private String coverImage;

    /**
     * 原文本内容
     */
    private String textContent;

    /**
     * 文章浏览量
     */
    private String viewCount;

    /**
     * 发布时间
     */
    private String publishTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getTextContent() {
        return textContent;
    }

    public void setTextContent(String textContent) {
        this.textContent = textContent;
    }

    public String getViewCount() {
        return viewCount;
    }

    public void setViewCount(String viewCount) {
        this.viewCount = viewCount;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", source=" + source +
                ", title=" + title +
                ", content=" + content +
                ", coverImage=" + coverImage +
                ", textContent=" + textContent +
                ", viewCount=" + viewCount +
                ", publishTime=" + publishTime +
                "}";
    }
}
